# -- coding:utf-8 --
# 字典
test_dic = {'color': 'green', 'points': 5};
print test_dic['color'];

# 先创建一个空字典
# 添加键—值对
test_dic = {};
test_dic['name'] = 'python';
print test_dic;

# 修改字典中的值
test_dic['name'] = 'javascript';
print test_dic;

# 删除键—值对
del test_dic['name'];
print test_dic;

favorite_languages = {
    'jen': 'python',
    'sarah': 'c',
    'edward': 'ruby',
    'phil': 'python',
}
print favorite_languages;
